<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>会议签到管理系统注册</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet" href="__PUBLIC__/resource/assets/css/amazeui.min.css"/>
    <link rel="stylesheet" href="__PUBLIC__/resource/assets/css/login.css"/>
    <script src="//cdn.bootcss.com/jquery/2.0.2/jquery.min.js"></script>
    <script src="__PUBLIC__/resource/layer/layer.js"></script>
</head>
<body>
<h1>会议签到管理系统注册</h1>
<div class="login">
    <form class="am-form" action="/admin/index/register" method="post">
        <p>
        <div class="form-group">
            <label for="email">电子邮箱</label>
            <input type="email" class="form-control" id="email" name="email" placeholder="请输入Email">
        </div>
        </p>
        <p>
        <div class="form-group">
            <label for="password">密码</label>
            <input type="password" class="form-control" id="password" name="password" placeholder="请输入密码">
        </div>
        </p>
        <p>
        <div class="form-group">
            <label for="repassword">确认密码</label>
            <input type="password" class="form-control" id="repassword" name="repassword" placeholder="请确认密码">
        </div>
        </p>
        <p>
        <div class="form-group">
            <label for="name">昵称</label>
            <input type="text" class="form-control" id="name" name="name" placeholder="昵称">
        </div>
        </p>
        <p><input type="button" class="am-btn am-btn-primary am-btn-block" value="注册"></p>

    </form>
    <script>
        $(function () {
            $(".am-btn").click(function () {
                $.post("{:U('index/registerpost/')}",$(".am-form").serialize(),function (data) {
                    $temp = $.parseJSON(data);
                    if($temp['status'] == "200"){
                        window.location.href = "{:U('index/center')}"
                    }else{
                        layer.msg($temp['text']);
                    }
                })
            })
        })
    </script>
</div>
<div class="copyright">
    © 2016 百米贩 版权所有, Inc.
</div>
</body>
</html>